﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="LexicalTests.cs" company="dimamartovoi">
//   Apache License
//   Version 2.0, January 2004
//   http://www.apache.org/licenses
// </copyright>
// <summary>
//   Defines the LexicalTests type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System.IO;
using System.Text;

using ActorModel.Evolution.Grammar;

using Antlr.Runtime;

using NUnit.Framework;

namespace Evolution.Tests
{
    /// <summary>
    ///     The lexical tests.
    /// </summary>
    [TestFixture]
    public class LexicalTests
    {
        #region Public Methods and Operators

        /// <summary>
        ///     The lexical test 1.
        /// </summary>
        [Test]
        [Ignore("Obsolete.")]
        public void LexicalTest1()
        {
            string codePath = Path.Combine(
                TestContext.CurrentContext.TestDirectory, @"EvolutionTestSamples\sample1.evol");
            var antlrFileStream = new ANTLRFileStream(codePath, Encoding.ASCII);
            var lexer = new EvolutionLexer(antlrFileStream);
            var tokenStream = new CommonTokenStream(lexer);
            var parser = new EvolutionParser(tokenStream);

            // parser.evolutionFunction();
        }

        #endregion
    }
}